package com.fnfn.sdk.api;

import com.fnfn.sdk.api.common.AjaxResponse;

/**
 * Created by huangfei on 2019/1/8.
 */
public class AjaxResponseData extends AjaxResponse {

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static AjaxResponseData reponseBody(int code, String message,Object data) {
        AjaxResponseData ajaxResponse = new AjaxResponseData();
        ajaxResponse.setCode(code);
        ajaxResponse.setMessage(message);
        ajaxResponse.setData(data);
        return ajaxResponse;
    }

}
